package com.fish.user.po;

import java.io.Serializable;
import java.util.Comparator;
import java.util.Date;

public class Menus implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -9015360369430777692L;

	private String menuId;

	private String parentId;

	private String menuName;

	private String url;

	private Integer rate;

	private Date createTime;

	private Date updateTime;

	private String types;
	
	private Long beginItem;
	
	private Long endItem;

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getRate() {
		return rate;
	}

	public void setRate(Integer rate) {
		this.rate = rate;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getTypes() {
		return types;
	}

	public void setTypes(String types) {
		this.types = types;
	}

	public Long getBeginItem() {
		return beginItem;
	}

	public void setBeginItem(Long beginItem) {
		this.beginItem = beginItem;
	}

	public Long getEndItem() {
		return endItem;
	}

	public void setEndItem(Long endItem) {
		this.endItem = endItem;
	}

	/**
	 * 按rate排序  
	 * @author huangzhi 
	 */
	public static class comparatorRate implements Comparator<Menus> {
		public int compare(Menus o1, Menus o2) {
			Menus s1 = (Menus) o1;
			Menus s2 = (Menus) o2;
			int result = (s1.rate)-(s2.rate);
			return result;
		}
	}
}